package com.sleep.psy.external_server.business.evaluation.entity.sleep;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wenliguo
 * @date 2025年07月23日 10:11
 */
@ApiModel("通用量表提交")
@Data
public class SubGeneralScaleReq {

    @ApiModelProperty(notes = "用户id", required = true)
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @NotNull(message = "量表id不能为空")
    @ApiModelProperty(notes = "量表id", required = true)
    private Integer scaleId;

    @ApiModelProperty("流程id")
    private Integer processId;

    @NotBlank(message = "测评答案不能为空")
    @ApiModelProperty(notes = "测评记录", required = true)
    private String answer;

    @NotNull(message = "答题开始时间不能为空")
    @ApiModelProperty(notes = "答题开始时间", required = true)
    private String startTime;

    @NotNull(message = "答题结束时间不能为空")
    @ApiModelProperty(notes = "答题结束时间", required = true)
    private String endTime;
}
